<template>
  <div>
    <h2>商品相关信息</h2>
    <div>
      <div>商品id: <strong>{{ goodInfoArr.goodNo }}</strong></div>
      <div>商品名称: <strong>{{ goodInfoArr.goodName }}</strong></div>
      <div v-if="goodInfoArr.desc">商品描述: <slot name="desc" :img="goodInfoArr.desc">{{ goodInfoArr.desc }}</slot>
      </div>
      <div v-else>商品描述: <slot name="desc" :img="goodInfoArr.desc"> </slot>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ['goodInfoArr']
}
</script>